const Router = require('koa-router')
const {verifyLogin,verifyAuth} = require('../middleware/anth.middleware')

const authRouter = new Router()

const {login , success} = require('../controller/auth.controller')

authRouter.post('/login', verifyLogin, login)
authRouter.get('/test', verifyAuth, success)
module.exports = authRouter